﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Id="7ce35295-728b-4904-bac4-1cdab78d4e6a"
                Location="EditControlBlock"
                RegistrationId="0X0101"
                RegistrationType="ContentType"
                RequireSiteAdministrator="false" ShowInReadOnlyContentTypes="false"
                ShowInSealedContentTypes="false" Title="$Resources:SendDocument;"
                Description="$Resources:SendDocument_description;">
  <UrlAction Url="javascript:SendSingleDoc('{ListId}',{ItemId});"/>
  </CustomAction>
  <CustomAction ScriptSrc="/_layouts/SendDocuments/SendDocument.js" Location="ScriptLink"></CustomAction>
  <CustomAction ScriptSrc="/_layouts/SendDocuments/ClientObjectModelUtility.js" Location="ScriptLink"></CustomAction>
  <CustomAction Id="3FC05EDB-D95D-4081-BF0D-F9194216406C"
                Location="CommandUI.Ribbon"
                RegistrationId="101" 
                RegistrationType="List" >
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.Documents.Share.Controls._children">
          <Button Id="Ribbon.Document.Share.SendMultipleDocs"
                  Command="SendMultipleDocs"
                  Sequence="30"
                  Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png" Image16by16Top="-16"
                  Image16by16Left="-88"
                  Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png" Image32by32Top="-128"
                  Image32by32Left="-448"
                  Description="$Resources:SendDocuments_description;"
                  LabelText="$Resources:SendDocuments;"                  
                  ToolTipDescription="$Resources:SendDocuments_description;"
                  TemplateAlias="o1"/>         
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler Command="SendMultipleDocs"
                          CommandAction="javaScript:sendMultipleDocuments();"
                          EnabledScript="javascript:enable();"/>       
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>
</Elements>